import { Message } from '@arco-design/web-react'
export const useCopyHooks = async (str: string) => {
  // 复制内容,
  if ('clipboard' in navigator) {
    await navigator.clipboard.writeText(str)
  } else {
    Message.success('复制成功!')
    document.execCommand('copy', true, str)
  }
  return Message.success('复制成功!')
}
